#include "calculator.h"
#include "ui_calculator.h"
#include<QString>

calculator::calculator(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::calculator)
{
    ui->setupUi(this);
}

calculator::~calculator()
{
    delete ui;
}

void calculator::on_pushButton_clicked()
{
    QString first,second,result;
    first=ui->lineEdit->text();
    second=ui->lineEdit_2->text();
    result=first+second;
    ui->lineEdit_3->setText(result);
}

void calculator::on_pushButton_2_clicked()
{
    close();
}

